 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="~/Login.aspx.cs" Inherits="Login"  %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<%@ Register assembly="aspnetcs_NewsScroller" namespace="WildStorms" tagprefix="ws" %>
<!DOCTYPE>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
--%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
       <link rel ="SHORTCUT ICON" href="images/122.gif" />
  <title>eBird Innovations&reg;  .:. Business Process Automation</title>

    <link href="Css/SkylineFair.css" rel="stylesheet" type="text/css" />
    <link href="App_Themes/DefaultTheme/Rating.css" rel="stylesheet" type="text/css" />
    <link href="App_Themes/DefaultTheme/StyleSheet.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">



var pic = new Array()

function banner(name, height, link){
	this.name = name
	this.height = height
	this.link = link
   }

pic[0] = new banner('images/Product1.jpg',70,'images/Product1.jpg')
pic[1] = new banner('images/Product2.jpg',85,'images/Product2.jpg')
pic[2] = new banner('images/Product3.jpg',45,'images/Product3.jpg')
pic[3] = new banner('images/dvrsystem.jpg',70,'images/dvrsystem.jpg')
pic[4] = new banner('images/securitysystem.jpg',70,'images/securitysystem.jpg')
pic[5] = new banner('images/e-gat.jpg',55,'images/e-gat.jpg')
pic[6] = new banner('images/Camera.jpg',66,'images/Camera.jpg')
pic[7] = new banner('images/accesscontrolsystem.jpg',80,'images/accesscontrolsystem.jpg')
pic[8] = new banner('images/Camera1.jpg',85,'images/Camera1.jpg')
pic[9] = new banner('images/dvr.jpg',40,'images/dvr.jpg')

var speed = 50

var kk = pic.length
var ii
var hhh
var nnn
var myInterval
var myPause
var mode = 0


var imgArray = new Array(kk)
var myTop = new Array(kk)

for (ii=0;ii<kk;ii++){
imgArray[ii] = new Image()
imgArray[ii].src = pic[ii].name
imgArray[ii].height = pic[ii].height

	hhh=0 
	for (nnn=0;nnn<ii;nnn++){
		hhh=hhh+pic[nnn].height
	}
	myTop[ii] = hhh
}

function ready(){
	for (ii=0;ii<kk;ii++){ 
		if (document.images[ii].complete == false){
			return false	
			break
		}
	}
return true
}


function startScrolling(){
	if (ready() == true){		
		window.clearInterval(myPause)
		myInterval = setInterval("autoScroll()",speed)	
	}
}	
	

function autoScroll(){
	for (ii=0;ii<kk;ii++){
		myTop[ii] = myTop[ii] - 1
		
	if (myTop[ii] == -(pic[ii].height)){
		hhh = 0
		for (nnn=0;nnn<kk;nnn++){
			if (nnn!=ii){
				hhh = hhh + pic[nnn].height
			}			
		}
		myTop[ii] =  hhh
	}
		
				
		document.images[ii].style.top = myTop[ii]
	}
	mode = 1
}

function stop(){
	if (mode == 1){
		window.clearInterval(myInterval)
	}
	if (mode == 0){
		window.clearInterval(myPause)
	}	
}

function go(){
	if (mode == 1){
		myInterval = setInterval("autoScroll()",speed)
	}
	if (mode == 0){
		myPause = setInterval("startScrolling()",3000)
	}	
}

myPause = setInterval("startScrolling()",3000)
</script>


<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
</script>

<script language="javascript" type="text/javascript" src="Javascript/fadeslideshow.js">


</script>

<script type="text/javascript" language="javascript">

var mygallery=new fadeSlideShow({
	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
	dimensions: [280, 200], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		["ProductFullSize/1.jpg", "", "", "Automatic Gate Control System."],
		["ProductFullSize/2.jpg", "", "_new", "Security!"],
		["ProductFullSize/3.jpg", "", "_new", "DVR!"],
		["ProductFullSize/4.jpg", "", "_new", "Attendence Management System."],
		["ProductFullSize/5.jpg", "", "_new", "DVR!"],
		["ProductFullSize/6.jpg", "", "", "Gate."] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})




</script>



</head>

<body>

<script language="javascript" type="text/javascript">
for (ii=0;ii<kk;ii++){
document.write('<a href = ' + pic[ii].link + ' target="_blank" ><img space=0 hspace=0 vspace=0 border=0 width=100 style=position:absolute;top:' + myTop[ii]  + ';left:0; src=' + pic[ii].name + ' onMouseOver=stop() onMouseOut=go()></a>')
}
</script>


    <form id="form1" runat="server">
    


    <asp:ScriptManager ID="scriptmanager1" runat="server"></asp:ScriptManager>
     <asp:Panel ID="pnlAlwayz"  runat="server" Width="25%" GroupingText="Product Gallery" CssClass="Heading">
                                    
    <div  id="fadeshow1" style="border-bottom-width:thin;border-color:Black;vertical-align:top"></div>
   
    
    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Always" ChildrenAsTriggers="True">
            <ContentTemplate>
                        <cc1:Rating runat="server" ID="Rating1"
                            MaxRating="5" BackColor="Transparent" 
                            CurrentRating="2"
                            CssClass="ratingStar"
                            StarCssClass="ratingItem"
                            WaitingStarCssClass="Saved"
                            FilledStarCssClass="Filled" 
                            EmptyStarCssClass="Empty" AutoPostBack="True" OnChanged="Rating1_Changed"
                            >
                        </cc1:Rating>
                        <asp:Label ID="labelCaption1" runat="server" Text="Rate it: " CssClass="Heading" />
                        <asp:Label ID="labelValue1" runat="server" Text="" CssClass="Heading"></asp:Label>                 
                                 </ContentTemplate></asp:UpdatePanel>           
   
                                    </asp:Panel>
          <cc1:AlwaysVisibleControlExtender ID="ace" runat="server"
    TargetControlID="pnlAlwayz"         
    VerticalSide="Middle"
    VerticalOffset="10"
    HorizontalSide="Right"
    HorizontalOffset="10"
    ScrollEffectDuration=".1"/>
          <table width="100%" style="background-color:#008FBF;">
       
            <tr>
                <td align="center">
                    <table  width="98%"  border="5" style="border-color:White;background-image:url('images/body_bg.jpg');">
                        <tr>
                            <td colspan="2" align="right" style="background-image:url('images/newloginheader.png');height:200px;width:1300px">
                            </td>
                        </tr>
                        <tr>
                              <td align="center" valign="middle" style="height:500px">
                                 <br /><br /><br />
                                    <table width="30%">
                                        <tr>
                                            <td valign="top" align="center">
                                             <img src="images/table_top.gif" alt="" width="300" height="20"/>
                                            <table width="100%"  border="0" cellspacing="0" cellpadding="0" style="height:200px;background-color:#008FBF">
                                                <tr>
                                                    <td align="center" ><br /> <img src="images/image.jpg" alt="" style="height: 30px; width: 50px" /></td>
                                                </tr>
                                                <tr>
                                                    <td align="center" valign="top">
                                                        <table>
                                                            <tr>
                                                            <td class="loginText">UserName</td>
                                                                <td><asp:TextBox ID="txtLoginName" runat="server" Width="180px" CssClass="textbox_username"></asp:TextBox>
                                                               <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtLoginName"
                                                                                Display="Dynamic" ErrorMessage="UserName is required.">*</asp:RequiredFieldValidator>--%>
                                                                 <%--<cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                                                                            TargetControlID="RequiredFieldValidator1">
                                                                        </cc1:ValidatorCalloutExtender>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                  <td class="loginText">Password</td>
                                                                  <td> <asp:TextBox ID="txtPassword" runat="server" Width="180px" CssClass="textbox_password" TextMode="Password"></asp:TextBox>
                                                                   <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                                                                                Display="Dynamic" ErrorMessage="Enter Password.">*</asp:RequiredFieldValidator>--%>
                                                                <%-- <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"
                                                                            TargetControlID="RequiredFieldValidator2">
                                                                        </cc1:ValidatorCalloutExtender>--%>
                                                                  </td>
                                                            </tr>
                                                            <tr>
                                                            <td colspan="2"><asp:Label ID="lblLoginError" runat="server" Visible="false"  CssClass="lblErrorMsg"></asp:Label></td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                                    <asp:Label ID="lblErrorMsg" runat="server" Visible="false" CssClass="lblErrorMsg"></asp:Label>

                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2" align="center">
                                                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                                        <Triggers>
                                                                          <asp:AsyncPostBackTrigger ControlID="btnLogin" EventName="Click"/>

                                                                            <%--<asp:PostBackTrigger ControlID="btnLogin" />--%>
                                                                          </Triggers>
                                                                          <ContentTemplate>
                                                                            <%-- <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br />--%>
                                                                              <asp:Button ID="btnLogin" runat="server" Text="Login" Width="100px" 
                                                                                                                 CssClass="loginButton" onclick="btnLogin_Click" OnClientClick='return ValidateControls()'/>
                                                                                                               
                                                                          </ContentTemplate>
                                                                          
                                                                        </asp:UpdatePanel>
                                                                          <asp:UpdateProgress DynamicLayout="false" ID="UpdateProgress1" runat="server">
                                                                              <ProgressTemplate><center>
                                                                                &nbsp;&nbsp;&nbsp;
                                                                                  <img src="images/loadingGreen.gif" alt="" style="height: 11px; width: 100px" /> 
                                                                                  <font name="verdana" size="1px">Loading ...</font>
                                                                              </center></ProgressTemplate>
                                                                        </asp:UpdateProgress>
                                                                </td>
                                                            </tr>
                                                            
                                                            <tr>
                                                                <td colspan="2" align="center">
                                                                <asp:LinkButton ID="btnForgotPwd"  runat="server" CssClass="loginText">Lost your password?</asp:LinkButton>
                                                                     <cc1:ModalPopupExtender ID="mpeCustomerSearch" runat="server" TargetControlID="btnForgotPwd"
                                                                        PopupControlID="pnlPopupContainer" X="120" Y="225" CancelControlID="spnClose" BehaviorID="mpeCustomerSearch">
                                                                    </cc1:ModalPopupExtender>
                                                                    <asp:HiddenField runat="server" ID="hfModalVisible" />
                                                                </td>
                                                            </tr>
                                                            
                                                            <tr><td colspan="2">
                                                             <asp:Panel runat="server" ID="pnlPopupContainer" CssClass="pnlPopupContainer">
                                    <span id="spnClose"></span>
                                    <div class="pnlPopupContainer1">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
                                     <ContentTemplate>
                                        <h2 align="center">Forgot PassWord</h2>           
                               <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSubmit">
                                       <table width="100%">
                                            <tr>
                                                <td align="center">
                                                     <table>
                                        <tr>
                                            <td align="left">   <asp:Label ID="lblUserName" runat="server"  CssClass="lblText" Text="User Name :"></asp:Label></td>
                                            <td align="left"><asp:TextBox ID="txtUserName" runat="server" 
                                                    CssClass="textbox" Width="200px"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td align="left">   <asp:Label ID="Label1" runat="server"  CssClass="lblText" Text="Security Question:"></asp:Label></td>
                                            <td align="left"><asp:TextBox ID="txtSecurityQuestion" runat="server" 
                                                    CssClass="textbox" Width="199px"></asp:TextBox></td>
                                        </tr>
                                         <tr>
                                            <td align="left">   <asp:Label ID="Label3" runat="server"  CssClass="lblText" Text="Security Answer:"></asp:Label></td>
                                            <td align="left"><asp:TextBox ID="txtSAn" runat="server" 
                                                    CssClass="textbox" Width="199px"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="center">
                                                

                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                  <asp:Image ID="myImage" runat="server" ImageUrl="~/CaptchaControl.aspx" />
                                            <%-- <cc2:CaptchaControl ID="Captcha1" runat="server" 
        CaptchaBackgroundNoise="Low" CaptchaLength="5" 
        CaptchaHeight="45" CaptchaWidth="150" 
        CaptchaLineNoise="None" CaptchaMinTimeout="5" 
        CaptchaMaxTimeout="240" FontColor = "#529E00" />--%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">   <asp:Label ID="Label2" runat="server"  CssClass="lblText" Text="Enter the above code:"></asp:Label></td>
                                            <td align="left"><asp:TextBox ID="txtCaptcha" runat="server" AutoPostBack="true" 
                                                    CssClass="textbox" Width="199px"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="center">
               <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btnText" 
                                       onclick="btnSubmit_Click1" />
<asp:Button ID="hh" runat="server" Text="kk" onclick="hh_Click" />
                                            </td>
                                        </tr>
                                        </table>
                                
                                                </td>
                                            </tr>
                                       </table>
                
               
            </asp:Panel>
            <p />
              <asp:Label ID="lblShowPwd" runat="server" CssClass="lblErrorMsg"></asp:Label>
        </ContentTemplate>
   
    </asp:UpdatePanel> </div>
</asp:Panel>
                                                            </td></tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                            <img src="images/table_bottom.gif" alt="" width="300" height="20" />
                                            </td>
                                        </tr>
                                    </table>
                              </td>
                        </tr>
                        <tr>
                            <td align="center" valign="bottom"> <%--<asp:Panel ID="pnlAlwayz" runat="server" Width="25%">
                                     <fieldset style="border: thin groove #008FBF;background-color:#C4E1FF;"> 
                                    <legend>    <script language="javascript">

/*
Neon Lights Text
By JavaScript Kit (http://javascriptkit.com)
For this script, TOS, and 100s more DHTML scripts,
Visit http://www.dynamicdrive.com
*/

var message="Our Products"
var neonbasecolor="#008FBF"
var neontextcolor="Navy"
var flashspeed=100  //in milliseconds

///No need to edit below this line/////

var n=0
if (document.all||document.getElementById){
document.write('<font size="2" style="font-weight: bold"  color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
document.write('</font>')
}
else
document.write(message)

function crossref(number){
var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
return crossobj
}

function neon(){

//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
//eval("document.all.neonlight"+m).style.color=neonbasecolor
crossref(m).style.color=neonbasecolor
}

//cycle through and change individual letters to neon color
crossref(n).style.color=neontextcolor

if (n<message.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",1500)
return
}
}

function beginneon(){
if (document.all||document.getElementById)
flashing=setInterval("neon()",flashspeed)
}
beginneon()



</script>
 </legend> 
                                    <table><tr><td align="left" valign="top">
                                    
                                           <asp:Panel ID="Panel2" runat="server"  BackColor="#008FBF" ForeColor="#ffffff" Font-Bold="true" Font-Size="16px">
            <div style="padding: 5px; text-align:left; ">
                <ws:PageNews ID="PageNews1" runat="server" ForeColor="white" Height="56px" 
        NewsFile="~/XMLFile.xml" Speed="2" Width="249px" BorderStyle="None" Font-Bold="True" 
                                            Font-Names="Georgia" Font-Size="8pt"  />
            </div>
            </asp:Panel>
                                    
                   <cc1:RoundedCornersExtender
                ID="RoundedCornersExtender2"
                runat="server"
                TargetControlID="Panel2"
                Corners="All" 
                Color="#008FBF"
                Radius="20">
            </cc1:RoundedCornersExtender>    
             <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Always" ChildrenAsTriggers="True">
            <ContentTemplate>
                        <cc1:Rating runat="server" ID="Rating1"
                            MaxRating="5" BackColor="Transparent" 
                            CurrentRating="2"
                            CssClass="ratingStar"
                            StarCssClass="ratingItem"
                            WaitingStarCssClass="Saved"
                            FilledStarCssClass="Filled" 
                            EmptyStarCssClass="Empty" AutoPostBack="True" OnChanged="Rating1_Changed"
                            >
                        </cc1:Rating>
                        <asp:Label ID="labelCaption1" runat="server" Text="Rate it: " CssClass="Heading" />
                        <asp:Label ID="labelValue1" runat="server" Text="" CssClass="Heading"></asp:Label>                 
                                 </ContentTemplate></asp:UpdatePanel>           
                                            
                                            
                                            
                                            </td></tr></table>
                                    </fieldset>
                                    </asp:Panel>
                                      <cc1:AlwaysVisibleControlExtender ID="ace" runat="server"
    TargetControlID="pnlAlwayz"         
    VerticalSide="Bottom"
    VerticalOffset="10"
    HorizontalSide="Right"
    HorizontalOffset="10"
    ScrollEffectDuration=".1"/>--%></td>
                        </tr>
                        <tr>
                                   <td style="border:0;border-bottom-style:solid;border-bottom-color:White;font-size:smaller;background-color:#008FBF;font-weight:bold;color:White" 
                                                colspan="2" align="center" > &copy; Copyright 2009 Your Website   
                                        Design by <a href="http://www.ebirdinfo.com/"><b><font color="#00ccff">ebird</font></b></a>
                                    </td>

                        </tr>
                    </table>
               </td>
           </tr>
           
       </table>
        
    </form>
</body>
</html>


                              
<script language="javascript" type="text/javascript">
function ValidateControls()
{
    if(document.getElementById("<%= txtLoginName.ClientID %>").value=="")
    {
       alert("Enter UserName");
        document.getElementById("<%= txtLoginName.ClientID %>").focus();
        return false;
    }
    if(document.getElementById("<%= txtPassword.ClientID %>").value=="")
    {
        alert("Enter Password");
        document.getElementById("<%= txtPassword.ClientID %>").focus();
        return false;
    }
    return true;
}                          

function ValidateForgotPasswordControls()
{
 if(document.getElementById("<%= txtUserName.ClientID %>").value=="")
    {
       alert("Enter UserName");
        document.getElementById("<%= txtUserName.ClientID %>").focus();
        return false;
    }
     if(document.getElementById("<%= txtSecurityQuestion.ClientID %>").value=="")
    {
       alert("Enter SecurityQuestion");
        document.getElementById("<%= txtSecurityQuestion.ClientID %>").focus();
        return false;
    }
    if(document.getElementById("<%= txtCaptcha.ClientID %>").value=="")
    {
       alert("Enter the above image here.");
        document.getElementById("<%= txtCaptcha.ClientID %>").focus();
        return false;
    }
}
</script>                            
 